{% extends "exploration/base.html" %}

{% load i18n %}
{% load group_tags %}

{% block body %}

{% for obj in objects %}
<div id="{{ obj.pk }}" class="edit-object">
  <h2>{{ obj.name }}</h2>
    <a id="show-attributes" href="#">Show/hide attributes</a>&nbsp;<a href="{% groupurl object_edit project id=obj.id %}">Edit</a>
  <div style="display: none" class="edit-attributes">
    {% for attr in attributes %}
      <input type="checkbox" name="{{ obj.pk }}" value="{{ attr.pk }}" />{{ attr.name }}</br>
    {% endfor %}
    <input type="submit" name="save" value="Submit" id="{{ obj.pk }}"/>
  </div>
</div>
{% endfor %}

{% endblock %}